/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package kks;

import java.util.ArrayList;
import java.util.Date;
import java.util.GregorianCalendar;

/**
 *
 * @author basti
 */
public class cMovie {
    
    private String MovieName;
    private int MovieRoom;
    private int Rows;
    private int Seats;
    private double Price;    
    private ArrayList<GregorianCalendar> times;
    
    public cMovie(String name, int room, int rows, int seats, double price, ArrayList<GregorianCalendar> times)
    {        
        setMovieName(name);
        setMovieRoom(room);
        setRows(rows);
        setSeats(seats);
        setPrice(price);
        setTimes(times);
    }
    
    public cMovie()
    {
        this("generic",0,0,0,0,null);
    }
    
    public final void setMovieName(String value)
    {
        MovieName = value;
    }
    
    public String getMovieName()
    {
        return MovieName;
    }
    
    public final void setMovieRoom(int value)
    {
        MovieRoom = value;
    }    

        
    public int getMovieRoom()
    {
        return MovieRoom;
    }
    
    public final void setSeats(int value)
    {
        Seats = value;
    }

    public int getSeats()
    {
        return Seats;
    }
    
    public final void setRows(int value)
    {
        Rows = value;
    }
    
    public int getRows()
    {
        return Rows;
    }

    public final void setPrice(double value)
    {
        Price = value;
    }
    
    public double getPrice()
    {
       return Price;
    }
    
    public String getPriceString()
    {
       return Double.toString(Price);
    }
    
    public final void setTimes(ArrayList<GregorianCalendar> value)
    {
        times = value;
    }
    
    public ArrayList<GregorianCalendar> getTimes()
    {
       return times;
    }       
    
    public void selectSeats(HomeFrame homeFrame)
    {
        homeFrame.setPanelSeatsVisible(this, null);
    }
}
